<?php


namespace App\Dao;


use App\Model\PartServantConfig;
use Hyperf\Database\Model\Builder;

class PartServantConfigDao
{

    /**
     * 查询Servant设置 - 多条
     *
     * @param array $map
     * @param array $select
     * @return mixed
     */
    public function many(array $map = [], array $select = ['*'])
    {
        return PartServantConfig::query()
            ->where(function(Builder $query) use ($map) {
                return queryWhere($query, $map);
            })
            ->select($select)
            ->get();
    }

}